package com.hiwhitley.himei.network.service;

import com.hiwhitley.himei.entity.FindMore;
import com.hiwhitley.himei.entity.FindMoreInfo;
import com.hiwhitley.himei.entity.Video;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/24.
 */

public interface OpenEyesService {

    @Headers("Cache-Control: public, max-age=86400")
    @GET
    Observable<Video> getDaily(@Url String url);

    @Headers("Cache-Control: public, max-age=86400")
    @GET
    Observable<List<FindMore>> getFindMores(@Url String url);

    @GET("api/v3/videos?udid=26868b32e808498db32fd51fb422d00175e179df&vc=83")
    Observable<FindMoreInfo> getFindMoreInfo(@Query("categoryName") String name, @Query("strategy") String strategy);
}
